import $axios from './request';

// 登录
export const $login = (data) => {
    return $axios.post('/login/login', data)
}

// 询盘模块
export const $Inside_polling = (data) => {   //内部人员接口
    return $axios.post('/polling/inside_polling', data)
}

export const $Product = (data) => {    //查看询盘产品
    return $axios.post('/polling/product', data)
}

export const $offer = (data) => {   //历史询盘报价
    return $axios.post('/polling/offer', data)
}

export const $add = (data) => {  //添加询盘
    return $axios.post('/polling/add', data)
}

export const $product_find = (data) => {  //model
    return $axios.post('/polling/product_find', data)
}

export const $product_brand = (data) => {  //brand
    return $axios.post('/polling/product_brand', data)
}

export const $history_quotation = (data) => {  //历史报价
    return $axios.post('/polling/history_quotation', data)
}

export const $production_item = (data) => {  //获取报价信息
    return $axios.post('/polling/production_item', data)
}

export const $userUser_list = (data) => {    //获取销售与采购人员列表
    return $axios.post('/user/user_list', data)
}

export const $pollingDel = (data) => {    //删除询盘
    return $axios.post('/polling/del', data)
}



// 添加到报价

export const $pollingInquiry_history = (data) => {    //历史询盘
    return $axios.post('/polling/inquiry_history', data)
}

export const $pollingQuotation = (data) => {    //保存报价
    return $axios.post('/polling/quotation', data)
}

export const $orderOrder_list = (data) => {    //获取订单列表
    return $axios.post('/order/order_list', data)
}

export const $orderOrder_info = (data) => {    //获取订单详情信息
    return $axios.post('/order/order_info', data)
}

export const $orderOrder_product = (data) => {    //获取订单产品信息
    return $axios.post('/order/order_product', data)
}


export const $pollingHistory_quotation = (data) => {  //历史报价
    return $axios.post('/polling/history_quotation', data)
}

export const $orderSave_quotation = (data) => {    //保存报价订单
    return $axios.post('/order/save_quotation', data)
}

export const $quotationSave_quotation = (data) => {    //保存报价转询盘
    return $axios.post('/quotation/save_quotation', data)
}

export const $quotationNew_quotation = (data) => {    //新增订单转询盘
    return $axios.post('/quotation/new_quotation', data)
}


// 添加到订单
export const $orderGet_inquiry_by_key = (data) => {    //获取询盘列表
    return $axios.post('/order/get_inquiry_by_key', data)
}

export const $orderGet_inquiry_info = (data) => {    //获取询盘信息
    return $axios.post('/order/get_inquiry_info', data)
}

export const $orderOrder_listo = (data) => {    //获取订单列表
    return $axios.post('/order/order_list', data)
}

export const $orderSave_order = (data) => {    //保存报价订单
    return $axios.post('/order/save_order', data)
}

export const $orderDel_order = (data) => {    //删除订单信息
    return $axios.post('/order/del_order', data)
}

export const $orderNew_order = (data) => {    //新增报价订单
    return $axios.post('/order/new_order', data)
}

// 报价

export const $orderget_order_purchase = (data) => {    //获取报价订单
    return $axios.post('/order/get_order_purchase', data)
}

export const $orderSet_quotation = (data) => {    //保存询盘报价
    return $axios.post('/order/set_quotation', data)
}

export const $orderNew_quotation_fun = (data) => {    //新建询盘报价
    return $axios.post('/order/new_quotation_fun', data)
}

export const $orderDel_quotation = (data) => {    //删除报价
    return $axios.post('/order/del_quotation', data)
}

export const $orderGet_inquiry_list_by_product = (data) => {    //获取询盘列表通过产品
    return $axios.post('/order/get_inquiry_list_by_product', data)
}

export const $orderPull_excel = (data) => {    //下载报价
    return $axios.post('/order/pull_excel', data)
}

export const $orderHistory_order = (data) => {    //产品历史订单
    return $axios.post('/order/history_order', data)
}

export const $quotationServiceQuotation = (data) => {    //新增报价通过询盘
    return $axios.post('/quotation/serviceQuotation', data)
}


// 文件
export const $fileGet = (data) => {    //获取文件下所以文件及目录
    return $axios.post('/file/get', data)
}

export const $fileShare = (data) => {    //正常文件分享
    return $axios.post('/file/share', data)
}

export const $fileGet_time = (data) => {    //文件过期时间
    return $axios.post('/file/get_time', data)
}

export const $filePassword_share = (data) => {    //通过密码分享
    return $axios.post('/file/password_share', data)
}

export const $fileShare_info= (data) => {    //获取分享详细信息
    return $axios.post('/file/share_info', data)
}

export const $fileShare_pwd= (data) => {    //获取密码分享详细信息
    return $axios.post('/file/share_pwd', data)
}

export const $fileUser_department= (data) => {    //获取文件结构
    return $axios.post('/file/user_department', data)
}

export const $fileUser_department_file= (data) => {    //获取结构中的文件
    return $axios.post('/file/user_department_file', data)
}

export const $fileUser_group_file= (data) => {    //获取用户组中的文件
    return $axios.post('/file/user_group_file', data)
}

export const $fileUser_user_file= (data) => {    //获取用户中的文件
    return $axios.post('/file/user_user_file', data)
}

export const $fileDown= (data) => {    //文件下载
    return $axios.post('/file/down', data)
}

export const $fileFind= (data) => {    //文件搜索
    return $axios.post('/file/find', data)
}
